<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'tests-question-form',
	'enableAjaxValidation'=>false,
)); 
?>

	<p class="note"><span class="required">*</span> 为必填.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'tests_question_title'); ?>
		<?php echo $form->textField($model,'tests_question_title',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'tests_question_title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tests_question_type'); ?>
		<?php echo $form->dropDownList($model,'tests_question_type',Questions::getQTypeOption());?>
		<?php echo $form->error($model,'tests_question_type'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tests_question_content'); ?>
		<?php echo $form->textArea($model,'tests_question_content',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'tests_question_content'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tests_question_answer'); ?>
		<?php echo $form->textArea($model,'tests_question_answer',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'tests_question_answer'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tests_question_explanation'); ?>
		<?php echo $form->textArea($model,'tests_question_explanation',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'tests_question_explanation'); ?>
	</div>

	<div class="row">
		<?php echo $form->hiddenField($model,'tests_question_qd',array('value'=>0)); ?>
		<?php echo $form->error($model,'tests_question_qd'); ?>
	</div>

	<div class="row">
		<?php echo $form->hiddenField($model,'tests_question_tid'); ?>
		<?php echo $form->error($model,'tests_question_tid'); ?>
	</div>

	<div class="row">
		<?php echo $form->hiddenField($model,'tests_question_sid'); ?>
		<?php echo $form->error($model,'tests_question_sid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tests_question_score'); ?>
		<?php echo $form->textField($model,'tests_question_score').'%'; ?>
		<?php echo $form->error($model,'tests_question_score'); ?>
	</div>


	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '提交' : '保存'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->